home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sacred & Secular
/
Sacred and Secular.iso
/
pc
/
movies
/
shared.dir
/
04840_Script__FullPic Frame FullPic Frame.ls
< prev
next >
Wrap
Text File
|
1996-04-03
|
3KB
|
123 lines
global currentcast
on exitFrame
global gTimerCast, gGuidedTourInProgress, gMeanderInProgress
if gTimerCast <> currentCast then
set gTimerCast = currentCast
startTimer
end if
if gGuidedTourInProgress then
guidePics
else if gMeanderInProgress then
checkMeander
else
planerollover2
end if
go the frame
end
-- check if spacebar was pressed,if so highlight title
-- DMD TBD ??? change to use the proper cast member for the title
on keydown
global gGuidedTourInProgress
if gGuidedTourInProgress then
if the keyCode = 123 then
guidePics(-2)
exit
else
if the keyCode = 124 then
guidePics(0)
exit
end if
end if
end if
if the keyCode = 123 then swapPic(0,2)
else if the keyCode = 124 then swapPic(1,2)
else if the keycode = 49 then
set the regPoint of cast 5 = point(0,0)
if the locH of sprite 7 = -640 then
puppetSprite 7, 1
set the type of sprite 7 = 1
set the forecolor of sprite 7 = 255
set the backcolor of sprite 7 = 0
set the loch of sprite 7 to 5
set the locv of sprite 7 to 452
set the castNum of sprite 7 = 5
updatestage
else
set the loch of sprite 7 to -640
end if
else pass
end
on mouseDown
global gGuidedTourInProgress
--
--
-- Wait X ticks until memory "settles down"
--
global gPauseWendy -- named for WendyMartin (her suggestion)
global musicOn, NarrOn
if gGuidedTourInProgress then
--
--
-- Check for proximaty to pink arrows
--
if (40+the mouseV) > the top of sprite 5 then
if (the mouseH - 40) < the right of sprite 4 then
guidePics(-2)
exit
else if (the mouseH + 40) > the left of sprite 5 then
guidePics(0)
exit
end if
end if
stopQTSound
sound stop 1
set gGuidedTourInProgress = 0
go to frame "guide" of movie "BRIDGES"
exit
end if
if the timer < gPauseWendy and (musicOn or NarrOn) then exit
if the doubleclick then dontpassevent
set h = the mouseH
if h < 20 then
swapPic(0,2)
exit
else if h > 620 then
swapPic(1,2)
exit
else
set v = the mousev
cursor 4
if the shiftDown then
goCaption2
else
PositionBigPic(h,v)
end if
cursor -1
end if
end if